package com.example.demo;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@Slf4j
@EnableRabbit
@MapperScan("com.example.demo.dao") //使用MapperScan批量扫描所有的Mapper接口
@SpringBootApplication
public class DemoApplication {

    public static void main(String[] args) {
        log.info("=====================开始启动=====================");
        SpringApplication.run(DemoApplication.class, args);
        log.info("=====================启动成功=====================");
    }

}
